package com.zq.designpaterns.structure.decorator;

/**
 * ================================================
 * 作    者：程志强
 * 邮    箱：cheng.zhiqiang@cesgroup.com.cn
 * 版    本：1.0.0
 * 创建日期：2021/01/12  14:03
 * 修改日期：
 * 描    述：装饰器抽象类
 * 修订历史：
 * ================================================
 */
public abstract class ShapeDecorator implements Shape {
    private final Shape shapeDecorator;

    public ShapeDecorator(Shape shapeDecorator) {
        this.shapeDecorator = shapeDecorator;
    }

    @Override
    public void draw() {
        shapeDecorator.draw();
    }
}
